globalConfig.app.config(function ($stateProvider) { 
    $stateProvider
        .state('detail',{
            url:'/detail',
            templateUrl: 'app/detail/views/detail.html',
            controller: 'detailCtrl',
            resolve: {
                load: ['$ocLazyLoad', function ($ocLazyLoad) {
                    return $ocLazyLoad.load([
                        'app/detail/ctrl/detailCtrl.js',
                    ]);
                }]
            }
        })
        
});